<!--
 * @Author: Dagon
 * @Date: 2021-02-24 14:56:01
 * @Description: 现实页脚在内容最底部
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100%;
    }

    .content {
      height: 100%;
      background-color: aquamarine;
    }

    .footer {
      height: 55px;
      margin-top: -55px;
      background-color: blue;
    }
  </style>
  <title>Document</title>
</head>

<body>
  <div class="content">
    我是内容
  </div>
  <div class="footer">
    我是页脚
  </div>
</body>

</html>